headerbar: compute nominal size of sides up front
authorRay Strode <rstrode@redhat.com>
Fri, 24 Jun 2016 16:16:40 +0000 (12:16 -0400)
committerRay Strode <rstrode@redhat.com>
Sat, 25 Jun 2016 00:24:43 +0000 (20:24 -0400)
commit847a43c4311c1952a5027381521120e3a817ee04
treee14fad873f87ece7f20b1da3bf454ea77110668a
parenteccfce50d6835206f7260937579bf363bdec1477
headerbar: compute nominal size of sides up front

In order to support the expand property on children, we're
going to need to look at the size of the packed children
on each side of the title widget, up front, before allocating
them (to compute how much extra allocation each expanded child
gets).

This commit lays the groundwork for that analysis by splitting
the size calculation of each side of the header bar outside
of the loop that allocates each child of the header bar.

https://bugzilla.gnome.org/show_bug.cgi?id=724332
gtk/gtkheaderbar.c